package com.nnfe.fyd.feature.main;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.nnfe.fyd.R;
import com.nnfe.fyd.base.WebViewActivity;
import com.nnfe.fyd.http.Url;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * ----------------------------------
 * Created by xyd on 2017/3/15.
 * <p/>
 * 描  述： 首页  查查页面
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class MainFragmentTabTwo extends MainFragmentBase {
    @Override
    public Object getTitleString() {
        return "查查";
    }

    @Override
    public int getContentView() {
        return R.layout.fragment_main_tab_two;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick({R.id.search_one, R.id.search_two, R.id.search_three})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.search_one:
                WebViewActivity.lauch(mContext,"查公证处", Url.URL_notarialAddress);
                break;
            case R.id.search_two:
                WebViewActivity.lauch(mContext,"查建委", Url.URL_constructionAddress);
                break;
            case R.id.search_three:
                WebViewActivity.lauch(mContext,"查征信网点", Url.URL_creditAddress);
                break;

        }
    }


}
